<template>
  <div class="giveBox"></div>
</template>

<script setup>
import {reactive, onMounted, ref} from 'vue'
import {useRoute} from "vue-router"
import {authInfo} from "@/api/settingtApi";
const route = useRoute()

const info = async () => {
  const query = route.query || {}
  const res = await authInfo(query)
  let msg = ""

  if(res.code === 100000) {
    msg = "授权成功！请关闭当前标签页！"
  }else{
    msg = "二维码失效！请关闭当前标签页,重新点击授权！"
  }
  let result = window.confirm(msg);
  if (result) {
    window.close()
  } else {
    window.close()
  }
}
info()
</script>

<style scoped lang="scss">

</style>